console.log(Math.max(1, 3, 2));//3
console.log(Math.max.apply(null,[1,2,3]));//3
